<?php

namespace app\api\model;

use think\Model;

class BannerItem extends BaseModel
{
    protected $table = 'we_banner_item';

    // 自动写入时间戳
    protected $autoWriteTimestamp = true;

    protected $hidden = ['id', 'img_id', 'banner_id', 'create_time', 'update_time', 'delete_time'];

    public function img()
    {
        return $this->belongsTo('Image', 'img_id', 'id');
    }
    //
}
